package net.whzjkj.gateway.core.constant;

import java.nio.charset.Charset;

/**
 * @description: JT808指令常量
 * @author: Mr.Hu
 * @create: 2018-10-31 16:39
 **/
public class JT808Constant {


    public static final String string_encoding = "GBK";

    public static final Charset string_charset = Charset.forName(string_encoding);

    /**
     * 标识位
     */
    public static final int PACKAGE_MARKER = 0x7e;
    /**
     * 通用终端应答
     */
    public static final int CMD_COMMON_TERMINAL_RESPOND = 0x0001;
    /**
     * 终端心跳
     */
    public static final int CMD_TERMINAL_HEARTBEAT = 0x0002;
    /**
     * 通用平台应答
     */
    public static final int CMD_COMMON_SERVER_RESPOND = 0x8001;
    /**
     * 终端注册
     */
    public static final int CMD_TERMINAL_REGISTER = 0x0100;
    /**
     * 终端注册应答
     */
    public static final int CMD_TERMINAL_REGISTER_RESPOND = 0x8100;
    /**
     * 终端注销
     */
    public static final int CMD_TERMINAL_LOGOUT = 0x0003;
    /**
     * 终端鉴权
     */
    public static final int CMD_TERMINAL_AUTH = 0x0102;

    /**
     * 位置信息汇报
     */
    public static final int CMD_TERMINAL_0200 = 0x0200;
}
